package com.gxa.saas.mapper;


import com.gxa.saas.pojo.GoodsXq;
import com.gxa.saas.pojo.Storage;
import com.gxa.saas.pojo.StoreHouseIn;

import java.util.List;
import java.util.Map;

public interface StoreHouseInMapper {
    List<StoreHouseIn> selectByPage(Integer page, Integer size);

    StoreHouseIn selectById(Integer id);


    Integer updateCheck(Integer id,String comments);


    Integer addInList(StoreHouseIn storeHouseIn);
    Integer update(Map map);

    Integer deleteById(Integer id);

    StoreHouseIn selectByStateAndId(Integer id,String state);

    List<StoreHouseIn> selectAll();

    List<StoreHouseIn> selectByDateAndVendorAndDepotAndState(Map map);

    List<StoreHouseIn> getDropDownList();

    Integer selectTotalMount();
    Integer selectTotalStorage();
    Integer selectTotalByLike(String name);
    Integer selectTotalByTiaojian(Map map);


    List<Storage> selectStorageByPage(Integer page, Integer size);
    //用入库单的数量减
    List<Storage> selectStoreDetail(String goodsName, Integer page, Integer size);
    List<GoodsXq> selectDetailById(Integer id);
    Storage selectByDetailId(Integer id);
    Integer deleteDetailById(Integer id);
    Integer insertGoodsXq(GoodsXq goodsXq);
    GoodsXq selectByGoodsXqId(Integer id);
    Integer updateByPrice(Integer bigCount,Integer smallCount,Double money,Integer id);
}
